package com.aaa.static1;

import javafx.scene.control.Tab;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月09日9:18
 */
public class ZhongJie implements ChuZu{
    private FangDong target;

    public ZhongJie(FangDong target) {
        this.target= target;
    }

    public void chuzu(){
        intro();
        watch();
        target.chuzu();
    }

    private void intro() {
        System.out.println("介绍");
    }

    private void watch() {
        System.out.println("看房");
    }
}
